#!/bin/bash

#------------------------------------------------------------------------------
#Filename:      VG.sh
#Version:       1.0
#Date:          2014/06/25
#Author:        xi.zhang
#Email:         xi.zhang@cs2c.com.cn
#Summary:       卷组操作：创建和删除
#Notes:         对卷组的一组操作
#Copyright:     China Standard Software Co.,Ltd.
#History:
#               Version 1.0,2014/06/25
#               -The first one
#------------------------------------------------------------------------------

##! @TODO: Create Volume Group.
##! @AUTHOR: xi.zhang
##! @VERSION: 1.0 
##! @OUT: Create Volume Group.
function CreateVG()
{    
    #vgcreate ${VGNAME} `sed -n '{1p}' pv.txt`
    vgcreate ${VGNAME} ${PV}
}


function DeleteVG()
{
    vgremove ${VGNAME}
}
